package com.wander.designBehavioral.observer;

/**
 * @Author : WDYin
 * @Date : 2020/12/9
 * @Desc :
 */
public class HexaObserver extends Observer{

    public HexaObserver(Subject subject) {
        this.subject = subject;
    }

    @Override
    public void update() {
        System.out.println( "Hex String: " + Integer.toHexString( subject.getState() ).toUpperCase() );
    }
}
